import 'package:flutter/material.dart';

class LevelColor {
  LevelColor(
      {this.level,
      this.color,
      this.actflLevel,
      this.actflColor,
      this.hskLevel,
      this.hskColor,
      this.yctLevel,
      this.yctColor});

  String? color;
  int? level;
  String? actflLevel;
  Color? actflColor;
  String? hskLevel;
  Color? hskColor;
  String? yctLevel;
  Color? yctColor;

  factory LevelColor.fromJson(Map<String, dynamic> json) => LevelColor(
        color: json["color"],
        level: json["level"],
        actflColor: json["actflColor"],
        actflLevel: json["actflLevel"],
        hskColor: json["hskColor"],
        hskLevel: json["hskLevel"],
        yctColor: json["yctColor"],
        yctLevel: json["yctLevel"],
      );

  Map<String, dynamic> toJson() => {
        "color": color,
        "level": level,
        "actflColor": actflColor,
        "actflLevel": actflLevel,
        "hskColor": hskColor,
        "hskLevel": hskLevel,
        "yctColor": yctColor,
        "yctLevel": yctLevel,
      };
}
